package com.wetao.lib_common.bean.response;

import com.wetao.lib_common.base.Base2Response;
import com.wetao.lib_common.utils.JsonUtils;

/**
 * author: zhouyh
 * created on: 2020/9/11 10:10 AM
 * description:
 */
public class LoginInfo extends Base2Response {


    /**
     * data : {"provinceId":16,"cityId":255,"districtId":1774,"schoolId":51,"schoolName":"深圳开发专用学校","name":"侯老师","mobile":"15180167872","token":"00aaf1fe2ec14bd79f3c531f625ac60e","avatarUrl":null,"itemSection":60,"itemSubject":48,"section":"高中","subject":"数学","score":16,"areaName":"广东深圳龙岗区","autoPlayPermission":1,"autoPlayType":1}
     */

    private Data data;

    public static LoginInfo objectFromData(String str) {

        return (JsonUtils.getmGson()).fromJson(str, LoginInfo.class);
    }

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static class Data {
        /**
         * provinceId : 16
         * cityId : 255
         * districtId : 1774
         * schoolId : 51
         * schoolName : 深圳开发专用学校
         * name : 侯老师
         * mobile : 15180167872
         * token : 00aaf1fe2ec14bd79f3c531f625ac60e
         * avatarUrl : null
         * itemSection : 60
         * itemSubject : 48
         * section : 高中
         * subject : 数学
         * score : 16
         * areaName : 广东深圳龙岗区
         * autoPlayPermission : 1
         * autoPlayType : 1
         */

        private int provinceId;
        private int cityId;
        private int districtId;
        private int schoolId;
        private String schoolName;
        private String name;
        private String mobile;
        private String token;
        private Object avatarUrl;
        private int itemSection;
        private int itemSubject;
        private String section;
        private String subject;
        private int score;
        private String areaName;
        private int autoPlayPermission;
        private int autoPlayType;

        public static Data objectFromData(String str) {

            return (JsonUtils.getmGson()).fromJson(str, Data.class);
        }

        public int getProvinceId() {
            return provinceId;
        }

        public void setProvinceId(int provinceId) {
            this.provinceId = provinceId;
        }

        public int getCityId() {
            return cityId;
        }

        public void setCityId(int cityId) {
            this.cityId = cityId;
        }

        public int getDistrictId() {
            return districtId;
        }

        public void setDistrictId(int districtId) {
            this.districtId = districtId;
        }

        public int getSchoolId() {
            return schoolId;
        }

        public void setSchoolId(int schoolId) {
            this.schoolId = schoolId;
        }

        public String getSchoolName() {
            return schoolName;
        }

        public void setSchoolName(String schoolName) {
            this.schoolName = schoolName;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public Object getAvatarUrl() {
            return avatarUrl;
        }

        public void setAvatarUrl(Object avatarUrl) {
            this.avatarUrl = avatarUrl;
        }

        public int getItemSection() {
            return itemSection;
        }

        public void setItemSection(int itemSection) {
            this.itemSection = itemSection;
        }

        public int getItemSubject() {
            return itemSubject;
        }

        public void setItemSubject(int itemSubject) {
            this.itemSubject = itemSubject;
        }

        public String getSection() {
            return section;
        }

        public void setSection(String section) {
            this.section = section;
        }

        public String getSubject() {
            return subject;
        }

        public void setSubject(String subject) {
            this.subject = subject;
        }

        public int getScore() {
            return score;
        }

        public void setScore(int score) {
            this.score = score;
        }

        public String getAreaName() {
            return areaName;
        }

        public void setAreaName(String areaName) {
            this.areaName = areaName;
        }

        public int getAutoPlayPermission() {
            return autoPlayPermission;
        }

        public void setAutoPlayPermission(int autoPlayPermission) {
            this.autoPlayPermission = autoPlayPermission;
        }

        public int getAutoPlayType() {
            return autoPlayType;
        }

        public void setAutoPlayType(int autoPlayType) {
            this.autoPlayType = autoPlayType;
        }
    }
}
